package com.yykj.hospital.server.model.repository;

import com.yykj.hospital.server.model.entity.HospitalNavigator;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalNavigatorRepository extends JpaRepository<HospitalNavigator,Integer>, JpaSpecificationExecutor<HospitalNavigator> {
    List<HospitalNavigator> findAllByHospitalIdAndStatusOrderBySortingAscAddTimeDesc(Integer hospitalId, Boolean status);
}
